import request from '@/utils/request'

export function getInfo() {
  return request({
    url: `/admin/bet/setting`,
    method: 'get'
  })
}

export function putInfo(id, data) {
  return request({
    url: `/admin/bet/setting/${id}`,
    method: 'put',
    data
  })
}

export function getLabelList() {
  return request({
    url: `/admin/bet/slot`,
    method: 'get'
  })
}

export function addLabel(data) {
  return request({
    url: `/admin/bet/slot`,
    method: 'post',
    data
  })
}

export function putLabel(id, form) {
  return request({
    url: `/admin/bet/slot/${id}`,
    method: 'put',
    data: form
  })
}

export function deleteLabel(id) {
  return request({
    url: `/admin/bet/slot/${id}`,
    method: 'delete'
  })
}

